package com.newgrand.controller;

import com.newgrand.domain.model.I8ReturnModel;
import com.newgrand.service.SettleService;
import com.newgrand.service.StatAmountService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(tags = "结算单数据")
@RequestMapping("/Settle")
@RestController
public class SettleController {

    @Resource
    private SettleService settleService;

    @ApiOperation(value = "结算单数据获取接口", notes = "结算单数据获取接口", produces = "application/json")
    @RequestMapping(value = "/GetDataByOrgId", method = RequestMethod.GET)
    I8ReturnModel<String> getDataByOrgId(String orgId) {
        return settleService.getData(orgId);
    }
}
